import request from '@/utils/request'

// 获取商品列表
export function getGoodsList(data) {
  return request({
    url: '/goods/list',
    method: 'get',
    params: data
  })
}

// 新增/修改商品
export function addGoods(data) {
  return request({
    url: '/goods/save',
    method: 'get',
    params: data
  })
}

// 删除
export function removeGoods(data) {
  return request({
    url: '/goods/delete',
    method: 'get',
    params: data
  })
}
